package day5xia;

import org.junit.Test;

public class HWTest {
    @Test
    public void test03(){
        Shape [] arr=new Shape[5];
        arr[0]=new Circle(0,0,2);
        arr[1]=new Rectangle(0,0,2,3);
        arr[2]=new Circle(0,0,2);
        arr[3]=new Rectangle(0,0,2,3);
        arr[4]=new Circle(0,0,2);
        for(Shape data:arr){
            if(data instanceof Circle){
                System.out.println("Circle");
            }
        }

    }


}
